<template>
    <div>
        <el-form ref="form" :model="form" label-width="230px" :disabled="form.disabled">
            <el-row>
                <el-col :span="12">
                    <el-form-item label="年度">
                        <el-date-picker
                          :disabled="true"
                          v-model="form.year"
                          type="year"
                          placeholder="选择年度">
                        </el-date-picker>
                    </el-form-item>
                </el-col>
                <!-- <el-col :span="12">
                    <el-form-item label="项目类型">
                       <el-select v-model="form.xiangmuleixing" placeholder="请选择" :disabled="true">
                          <el-option
                            v-for="item in projectTypeList"
                            :key="item.value"
                            :label="item.label"
                            :value="item.value">
                          </el-option>
                        </el-select>
                    </el-form-item>
                </el-col> -->
                <el-col :span="128">
                    <el-form-item label="项目总数">
                      <el-input v-model="form.xiangmuzongshu" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="18">
                    <el-form-item label="违规项目总数">
                      <el-input v-model="form.weiguizongshu" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
                <!-- <el-col :span="24">
                    <el-divider content-position="left">系统录入整改</el-divider>
                </el-col> -->
                <el-col :span="18">
                    <el-form-item label="系统录入整改完成项目数">
                      <el-input v-model="form.lurushu" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
                <!-- <el-col :span="12">
                    <el-form-item label="项目完成率（%）">
                      <el-input v-model="form.lurulv" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
                 <el-col :span="24">
                    <el-divider></el-divider>
                </el-col>
                <el-col :span="18">
                    <el-form-item label="实施方案审批整改项目数" label-width="200px" >
                      <el-input v-model="form.pifushu" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="18">
                    <el-form-item label="招标程序整改项目数" label-width="200px" >
                      <el-input v-model="form.yijiaoshu" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="18">
                    <el-form-item label="工程月进度整改项目数" label-width="200px">
                      <el-input v-model="form.ruluxiangmushu" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="18">
                    <el-form-item label="验收整改项目数" label-width="200px">
                      <el-input v-model="form.qianpifushu" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="18">
                    <el-form-item label="其他类型整改项目数" label-width="200px">
                      <el-input v-model="form.feijianshexiangmu" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-divider></el-divider>
                </el-col> -->
                <el-col :span="18">
                    <el-form-item label="系统录入整改项目完成率（%）" label-width="200px">
                        <el-input v-model="form.shijiwanchenglv" :disabled="true"></el-input>
                    </el-form-item>
                </el-col>
            </el-row>
            <div  class="dialog-footer"v-if="!form.disabled">
                <el-button @click="saveEdit">取 消</el-button>
                <el-button type="primary" @click="saveEdit">确 定</el-button>
            </div>
        </el-form>

         <!-- 关联项目 -->
        <el-dialog title="关联项目" :visible.sync="innerTableVisible" width="80%" append-to-body>
            <projectTable @close="innerTableVisible = false" :form="form" :isComponent="true" type="acceptManage"></projectTable>
        </el-dialog>
    </div>
</template>
<script>
import {data} from '@/components/common/area';
import {GetFList} from '@/components/common/filter';
import projectTable from '@/components/page/programSummarize';
export default {
    components: {
        projectTable
    },
    props: {
        editVisible: {
            default : false
        },
        form: {
            default: () => {},
        },
    },
    data() {
        return{
            projectTypeList: GetFList('projectType'),
            data: data,
            innerTableVisible: false,
        }
    },
    methods: {
        saveEdit() {
            this.$emit('close')
        }
    }
}
</script>
<style scoped>
    .dialog-footer {
        text-align: right
    }
</style>